﻿using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using NUnit.Framework;
using Selenium;

namespace time
{
[TestFixture]
public class vancl3
{
private ISelenium selenium;
private StringBuilder verificationErrors;

[SetUp]
public void SetupTest()
{
selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.vancl.com/");
selenium.Start();
verificationErrors = new StringBuilder();
}

[TearDown]
public void TeardownTest()
{
try
{
//selenium.Stop();
}
catch (Exception)
{
// Ignore errors if unable to close the browser
}
Assert.AreEqual("", verificationErrors.ToString());
}

[Test]
public void t1()
{
			selenium.Open("/");
			selenium.Click("link=登录");
			selenium.WaitForPageToLoad("30000");
			selenium.Type("id=vanclUserName", "1");
			selenium.Type("id=vanclPassword", "1");
			selenium.Click("id=vanclLogin");
}
}
}
